package moyangjia.retailers.uims.config;

/**
 * @description:
 * @author: honglei
 * @time: 2021/3/15 0015 17:31
 */
import lombok.Data;
import lombok.ToString;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 *用作UserDetailsService返回
 */
@Data
@ToString
public class UserInfo extends User {
    private String id;
    private String name;
    private String companyId;

    public UserInfo(String username, String password, Collection<? extends GrantedAuthority> authorities){
        super(username,password,authorities);
    }
}